<?php
// Version
define('VERSION', '0.1.9');

// Configuration
if (file_exists('config.php')) {
	require_once('config.php');
}  

// Install
if (!defined('DIR_SYSTEM')) {
	header('Location: ../install/index.php');
	exit;
}

// Startup
require_once(DIR_SYSTEM . 'startup.php');

// Include Files
require_once(DIR_SYSTEM . 'include.php');

// Front Controller 
$controller = new Front(DIR_SYSTEM);

$config = $controller->config('admin');

// Load Admin App
$app = $controller->bootstrap($config);

// Dispatch
$controller->dispatch($app);
?>
